import random

# 生成100个0到9的随机整数
random_numbers = [random.randint(0, 9) for _ in range(100)]

# 计算平均值
average = sum(random_numbers) / len(random_numbers)

# 统计每个数字出现的次数
count = {i: random_numbers.count(i) for i in range(10)}

# 打印结果
print("随机整数列表:", random_numbers)
print("平均值:", average)
print("每个数字出现的次数:", count)